import request from '@/utils/request'

// 查询适老化列表
export function listInfo(query) {
  return request({
    url: '/system/aging_design/configInfo/list',
    method: 'get',
    params: query
  })
}

// 查询适老化详细
export function getInfo(id) {
  return request({
    url: '/system/aging_design/configInfo/' + id,
    method: 'get'
  })
}

// 新增适老化
export function addInfo(data) {
  return request({
    url: '/system/aging_design/configInfo',
    method: 'post',
    data: data
  })
}

// 修改适老化
export function updateInfo(data) {
  return request({
    url: '/system/aging_design/configInfo',
    method: 'put',
    data: data
  })
}

// 删除适老化
export function delInfo(id) {
  return request({
    url: '/system/aging_design/configInfo/' + id,
    method: 'delete'
  })
}

// 导出适老化
export function exportInfo(query) {
  return request({
    url: '/system/aging_design/configInfo/export',
    method: 'get',
    params: query
  })
}
